package com.supermarket.mapper;

import com.supermarket.entity.Warehouse;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface WarehouseMapper {
    List<Warehouse> findAll();

    Integer findCount();

    void add(Warehouse warehouse);

    void deleteById(String warehouseID);

    void updateWarehouse(Warehouse warehouse);

    void deleteByIds(Integer[] ids);

    List<Warehouse> findByIds(Integer[] ids);

    void save(List<Warehouse> cachedDataList);
}
